package org.mendoza.salud.hvt.ui;

import com.vaadin.annotations.Push;
import com.vaadin.annotations.Theme;
import com.vaadin.cdi.CDIUI;
import com.vaadin.cdi.CDIViewProvider;
import com.vaadin.navigator.Navigator;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;

import javax.inject.Inject;

@Theme("valo")
@CDIUI("")
@Push
public class MyUI extends UI {
    @Inject
    CDIViewProvider viewProvider;
    Navigator navigator;
    @Override
    protected void init(VaadinRequest request) {
        navigator = new Navigator(this, this);
        navigator.addProvider(viewProvider);
        navigator.navigateTo("CrudView");
    }

}